#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int swap(int* p, int* q) {
	int temp = *p;
	*p = *q;
	*q = temp;
	return 0;
}

int main() {

	int m = 0, n = 0;
	scanf("%d", &m);
	scanf("%d", &n);
	swap(&m, &n);
	printf("%d %d", m, n);
	return 0;
}